<?php

declare(strict_types=1);

namespace app\operations\controller\admin;

use think\Request;
use think\Response;
use sheep\controller\Backend;
use sheep\exception\SheepException;
use think\facade\Db;
use app\seller\model\Apply as ApplyModel;

use app\operations\model\SupplierApply as SupplierApplyModel;



use sheep\controller\traits\Crud;


//门店申请
class SupplierApply extends Backend
{
    use Crud;
    protected $model = null;

    protected function initialize()
    {
        $this->model = new SupplierApplyModel;
    }


    /**
     * 查看
     *
     * @return Response
     */
    public function list(Request $request): Response
    {

        $list = $this->model->sheepFilter()->paginate($request->param('list_rows', 10));

        return success('获取成功', $list);
    }



}
